package appapi.service.impl;

import appapi.Vo.record.WorkCirclePageVo;
import appapi.dao.WorkCircleMapper;
import appapi.entity.Zhongjiao.WorkCirclePageReq;
import appapi.service.mango.WorkCircleService;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author dhq
 * @version 1.0
 * @date 2023/9/14  15:11
 */
@Service
public class WorkCircleServiceImpl implements WorkCircleService {

    @Autowired
    WorkCircleMapper workCircleMapper;

    /**
     * 工作循环记录的分页查询
     * @param workCirclePageReq
     * @return
     */
    @Override
    public List<WorkCirclePageVo> getWorkCirclePageList(WorkCirclePageReq workCirclePageReq) {
        PageHelper.startPage(workCirclePageReq.getCurrPage(), workCirclePageReq.getPageSize());
        List<WorkCirclePageVo> workCirclePageList = workCircleMapper.getWorkCirclePageList(workCirclePageReq);
        return workCirclePageList;
    }
}
